<%@page import="nl.project.data.controller.MembersDAO" %>
<%@page import="nl.project.data.Appointment" %>
<%@page import="java.util.ArrayList" %>

<!DOCTYPE HTML>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	</head>
	<body>
		<h1>Schedule arrayList print:</h1>
		<%
			ArrayList<Appointment> appointments = MembersDAO.getAppointments();
		
			if(appointments.size() > 0){
				for(Appointment appo : appointments){
					out.print(appo.toString());
					out.print("<br>");
				}
			} else {
				out.print("Error 703: There are no appointments yet");
			}
		%>
		
	</body>
</html>